package com.ruben.simplescaffold.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 后台控制层
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/7/11 0011 17:22
 */
@Controller
public class AdminController {

    /**
     * 自定义跳转视图
     *
     * @param page 页面
     * @author <achao1441470436@gmail.com>
     * @since 2021/6/17 14:30
     */
    @GetMapping("admin/{page}")
    public String page(@PathVariable String page) {
        return "admin/" + page;
    }
}
